import { lazy }  from "react"
let routerList = [
   {
       path:"/home",
       component:lazy(()=>import("../views/home"))
   },
   {
    path:"/detail",
    component:lazy(()=>import("../views/detail"))
    },
    {
        path:"/shopcar",
        // lazy函数  擦伤心啊         返回得是一个propmise
        component:lazy(()=>import("../views/shopcar"))
    },
    {
        path:"/delivelist",
        component:lazy(()=>import("../views/delivelist"))
    },
    {
        path:"/address",
        component:lazy(()=>import("../views/address"))
    },
    {
        path:"/form",
        component:lazy(()=>import("../views/form"))
    },
    {
        from :"/",
        to:"/home"
    }
]
export default routerList